package com.zsw.service;

import com.zsw.entity.Commodity;

/**
 * @author zhangsw
 */
public interface CommodityService {
    /**
     * 添加商品
     * @param commodity
     * @return
     */
    Integer addCommodity(Commodity commodity);

    /**
     * 根据Id获取商品
     * @param id
     * @return
     */
    Commodity getCommodityById(Integer id);
}
